<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新闻管理-新闻列表</title>
    <!-- layui.css -->
    <link href="/libs/layui/css/layui.css" rel="stylesheet">
    <style>
        .layui-table-view .layui-table {
            width: 100% !important;
        }
        
        .news-add {
            margin-bottom: 10px;
        }
    </style>
    <script src="/libs/jquery.js"></script>
    <!-- layui.js -->
    <script src="/libs/layui/layui.js"></script>
    <script src="/libs/axios.js"></script>
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">新闻管理-新闻列表</div>
        <div class="layui-card-body">
            <a href="javascript:void(0)" class="news-add layui-btn">新闻添加</a>
            <!-- 筛选 -->
            <form class="layui-form">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <select id="cate_id">
                          <option value="0">请选项分类</option>
                          {{each cates v}}
                          <option value="{{v.id}}">{{v.cate_name}}</option>
                          {{/each}}
                     </select>
                    </div>
                    <div class="layui-inline">
                        <input type="text" id="title" placeholder="请输入标题的关键词" autocomplete="off" class="layui-input">
                    </div>

                    <div class="layui-inline">
                        <button class="layui-btn search">搜索</button>
                    </div>
                </div>
            </form>
            <!-- 表格 -->
            <table class="layui-hide" id="cate" lay-filter="test"></table>
            <!-- 头部工具栏 -->
            <!-- <script type="text/html" id="toolbarDemo">
            </script> -->
            <!-- 单元格工具栏 -->
            <script type="text/html" id="op">
                <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
            </script>
        </div>
    </div>
    <!-- 引入自己的js -->
    <script src="/js/news/news.js"></script>
</body>

</html>